﻿using System.ComponentModel;
using System.Configuration.Install;
using System.ServiceProcess;

namespace MailQ.SenderService
{
	[RunInstaller(true)]
	class SenderServiceInstaller : Installer
	{
		public SenderServiceInstaller()
		{
			ServiceProcessInstaller serviceProcessInstaller = new ServiceProcessInstaller();
			ServiceInstaller serviceInstaller = new ServiceInstaller();
			serviceProcessInstaller.Account = ServiceAccount.LocalSystem;
			serviceInstaller.DisplayName = "MailQ.SenderService";
			serviceInstaller.StartType = ServiceStartMode.Automatic;
			serviceInstaller.ServiceName = "MailQ.SenderService";
			Installers.Add(serviceProcessInstaller);
			Installers.Add(serviceInstaller);
		}
	}
}
